import request from '@/utils/request'

// 查询学习/工作简历列表
export function listStudywork(query) {
  return request({
    url: '/archives/studywork/list',
    method: 'get',
    params: query
  })
}

// 查询学习/工作简历详细
export function getStudywork(id) {
  return request({
    url: '/archives/studywork/' + id,
    method: 'get'
  })
}

// 新增学习/工作简历
export function addStudywork(data) {
  return request({
    url: '/archives/studywork',
    method: 'post',
    data: data
  })
}

// 修改学习/工作简历
export function updateStudywork(data) {
  return request({
    url: '/archives/studywork',
    method: 'put',
    data: data
  })
}

// 删除学习/工作简历
export function delStudywork(id) {
  return request({
    url: '/archives/studywork/' + id,
    method: 'delete'
  })
}
